/**
 * Created by Baggio on 2017-12-21.
 */
$(function () {

});
function payCommission(tid) {
    var postData={tid:tid}

    $.ajax({
        type: "post",
        url: '/admin/order/payCommission.html',
        data:postData,
        async: false,
        success: function(res){
       var  data=JSON.parse(res);
            if (data.code != 1){
                layer.msg('操作失败!',{icon : 5,time : 1000});
                console.log(data.msg);
                return;
            }
            layer.msg('操作成功!',{icon : 6,time : 1000},function(){
                window.location.reload();
            })
        },
        error: function(XMLHttpRequest, textStatus, errorThrown){
            //alert(XMLHttpRequest.status);
            window.location.reload();
        }
    });

}